package com.novel.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.novel.web.entity.NfBookshelf;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 书架表
 *
 * @author 樊温军
 * @date Fri May 09 15:15:23 CST 2025
 */
public interface NfBookshelfMapper extends BaseMapper<NfBookshelf> {

    /**
     * 根据条件获取书架表列表
     *
     * @param nfBookshelf 条件
     * @return List<NfBookshelf>
     */
    List<NfBookshelf> getList(@Param("map") NfBookshelf nfBookshelf);

    /**
     * 分页查询
     *
     * @param page        分页对象
     * @param nfBookshelf 条件
     * @return IPage<NfBookshelf>
     */
    IPage<NfBookshelf> getPage(Page<NfBookshelf> page, @Param("map") NfBookshelf nfBookshelf);
}
